@layout("/common/_curd/_container.html"){

	<form data-url="${basePath}/${code}/save" method="post" class="form-horizontal" role="form">
		<!-- 表单 -->
		@ var _table="product_type";
		@ var _col=[
		@			  {name:"材料", index:"name", type:"text",newline:true,length:8},
		@			  {name:"首价(成本)", index:"f_cost", type:"text",newline:true,length:3},
		@			  {name:"首价", index:"f_prise", type:"text",newline:false,length:3},
		@			  {name:"首价数量", index:"f_num", type:"text",newline:true,length:8},
		@			  {name:"续价(成本)", index:"f_cost", type:"text",newline:true,length:3},
		@			  {name:"续价", index:"l_prise", type:"text",newline:false,length:3}
		@		   ];
		@ include("/common/_curd/_add.html", {"col":_col, "table":_table}){}
		
		<!-- 按钮 -->
		@ include("/common/_curd/_btn.html", {btn_save:"新增", btn_close:"关闭"}) {}
	</form>
<script>
    $(function () {
        $('#_p_id').val(parent.$('#pid').val())
    })
</script>

@}
